package org.frog.sgs.server;

import java.io.Serializable;
import java.util.Arrays;

/**
 * @author duanxiangqi
 * @date 2012-10-20
 */
public class ServerConfig implements Serializable {

	private static final long serialVersionUID = 7040482554871929796L;

	private int id;

	private int playerNum;

	private String name;

	private int[] roles;

	private String desc;

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public int getPlayerNum() {
		return playerNum;
	}

	public void setPlayerNum(int playerNum) {
		this.playerNum = playerNum;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public int[] getRoles() {
		return roles;
	}

	public void setRoles(int[] roles) {
		this.roles = roles;
	}

	public String getDesc() {
		return desc;
	}

	public void setDesc(String desc) {
		this.desc = desc;
	}

	public String toString() {
		return "[id:" + id + ", name:" + name + ", playerNum:" + playerNum + ", roles:" + Arrays.toString(roles)
				+ ", desc:" + desc + "]";
	}
}
